#pragma once

#include <cmath>
#include <ctime>
#include <cstdlib>
#include <string>

#include "City.h"

class GameController
{
public:
	GameController() ;
	~GameController() ;

	//updates the current year for the next year
	void Update( ) ;

	//updates the bushels used for this year
	void UpdateBushels(int input) ;

	string RespondMessage( int input ) ;

	string DisplayStats( ) { return city->Display() ; }

	//sets the current state of the game
	bool InputAmount(int input) ;

	string EndGame( );

	//checks if the years > 10 by asking the city for the current year
	int CheckYears() { return city->GetYears() ; }
	int GetState() { return m_State ; }
	int GetAcresPurchased() { return m_AcresPurchased ; }
	int GetBushelsFeeding() { return m_BushelsFed ; }
	int GetPlantedAcres() { return m_AcresPlanted ; }
	int GetStarved() { return city->GetStarved() ; }

	bool GetLose() { return m_Lose; }
private:
	City* city ;

	int m_State ;

	//stores all the user input for the three amounts
	int m_AcresPurchased ;
	int m_BushelsFed ;
	int m_AcresPlanted ;

	bool m_Lose;
};